import java.util.ArrayList;

public interface Service<T> {
    public void insert(T data, ArrayList<T> items);
    public void delete(int index, ArrayList<T> items);
    public void update(T data, ArrayList<T> items);
    public ArrayList<T> selectById(Integer id, ArrayList<T> items);
    public ArrayList<T> selectByName(String name, ArrayList<T> items);
}
